using System.Windows.Controls;
using JurnalUmum.ViewModels;
using Lib.Helper;

namespace JurnalUmum
{
    public partial class Index : Page
    {
        public Index()
        {
            InitializeComponent();
            JurnalViewModel.OnSearchCompleted = (x) => { DataContext = x; };

            EventAggregator.RegisterMessage("SearchJurnal", (o, e) =>
                                                                {
                                                                    var search = new Search();
                                                                    search.Show();
                                                                });
        }
    }
}